/**
*@author       wuwg
*@createTime   2018/03/20
*@updateTime   2018/03/20
*@description
*@rule
 */
@import '../../../config/config.less';

@css-prefix-divider: ~"@{css-prefix}divider";

.@{css-prefix-divider} {
  background: @border-color-base;

  &, // for compatiable
  &-vertical {
    margin: 0 8px;
    display: inline-block;
    height: 1.5em;
    width: 1px;
    vertical-align: middle;
    position: relative;
  }

  &-horizontal {
    display: block;
    height: 1px;
    width: 100%;
    margin: 24px 0;
    clear: both;
  }


  &-inner-text {
    background-color: @body-background;
    display: block;
    position: absolute;
    font-weight: 500;
    font-size: 16px;
    padding: 0 20px;
  }

  &-with-text-center {
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
  }

  &-with-text-left {
    left: 20px;
    transform: translateY(-50%);
  }

  &-with-text-right {
    right: 20px;
    transform: translateY(-50%);
  }

  &-dashed {
    border-top: 1px dashed;
  }

}
